#include <iostream>
using namespace std;
class Complex
{
private:
double real;
double imag;
public:
Complex();
Complex(double real, double imag);
double getReal();
double getImag();
void setReal(double real);
void setImag(double imag);
Complex operator++();
friend ostream& operator<<(ostream& afiseaza, const Complex& c);
};
class sirComplex
{
private:
Complex v[100];
public:
sirComplex(Complex v[100]);
Complex getElement(int i);
void setElement(Complex c,int i);
int nrElemente();
double suma();
void incrementare();
};

